﻿<Window x:Class="PDOGenerator.Util.MessageDialog"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Message Dialog" MinHeight="170" MinWidth="500" Height="172" Width="514" ShowInTaskbar="False" WindowStartupLocation="CenterOwner" IsEnabled="True" ResizeMode="NoResize">
    <Grid Background="Gainsboro">
        <Grid.ColumnDefinitions>
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="95" />
            <RowDefinition Height="42" />
            <RowDefinition Height="122.667*" />
        </Grid.RowDefinitions>
        <Grid Grid.Row="0" Grid.Column="0" Background="White" >
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="80" />
                <ColumnDefinition Width="398*" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition />
            </Grid.RowDefinitions>
            <TextBlock Grid.Column="1" Margin="0,10,10,0" Name="_headerTextBox" FontSize="20" Foreground="Blue" VerticalAlignment="Top" />
            <TextBlock Grid.Column="1" Margin="0,39,15,3" Name="_messageTextBox" TextWrapping="WrapWithOverflow" />
            <Image  Margin="6,6,6,7" Name="_messageImage" Stretch="None"/>
        </Grid>
        <Image Grid.Row="1"  Name="_footerImage" Width="15" Stretch="Uniform" HorizontalAlignment="Left" Margin="30,8.132,0,6" />
        <TextBlock Grid.Row="1" Margin="67,15,203,6" Name="_footerTextBox" />

        <Button Grid.Row="1" Margin="0,12,12,6" Name="_closeBtn" Click="_closeBtn_Click" HorizontalAlignment="Right" Width="75" IsDefault="True">OK</Button>
        <Button Grid.Row="1" Margin="0,12,97,6" Name="_otherBtn" HorizontalAlignment="Right" Width="75" Visibility="Hidden" Click="_otherBtn_Click">Yes</Button>
        <DockPanel Grid.Row="2" LastChildFill="True" >
        <Expander  DockPanel.Dock="Top" Header="Details" Name="_detailExpander" IsExpanded="False" 
                   Expanded="_detailExpander_Expanded" Collapsed="_detailExpander_Collapsed" Margin="3">
                <ScrollViewer HorizontalScrollBarVisibility="Auto" Margin="5" >
                    <TextBox Name="_detailText" Visibility="Collapsed" />
                    </ScrollViewer>
            </Expander>
        </DockPanel>
    </Grid>
</Window>
